#pragma once

#include <stdio.h>
#include <string.h>
#include <time.h>
#include <sys/time.h>
#include <stdlib.h>

#ifdef __cplusplus
extern "C"
{
#endif

#define ETH_ADDR_AMC 201 // 以太网IP和MAC地址

    typedef struct
    {
        uint16_t tx_freq;       // 发射频率 2400 - 2500 Hz
        int16_t display_value; // 显示数值

    } app_sys_para_t;

    extern app_sys_para_t app_sys_para;

    void app_sys_log_init(void);
    void app_sys_para_init(void);
    void app_sys_task(void);
    void app_sys_get_local_net_addr(uint8_t *addr1, uint8_t *addr2, uint8_t *addr3, uint8_t *addr4);
    void app_sys_get_local_net_mac(uint8_t *addr1, uint8_t *addr2, uint8_t *addr3, uint8_t *addr4, uint8_t *addr5, uint8_t *addr6);

#ifdef __cplusplus
}
#endif
